#ifndef GROUPCHATWINDOW_H
#define GROUPCHATWINDOW_H

#include <QMainWindow>
#include<QTcpSocket>
#include "chatwindow.h"
namespace Ui {
class GroupChatWindow;
}

class GroupChatWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit GroupChatWindow(ChatWindow *parentChatWindow,QWidget *parent = nullptr);
    ~GroupChatWindow();

private slots:
    //发信息
    void sendmessage();
    //发文件
    void sendFile();
    void handleMessageReceived();
    //返回按钮槽
    void on_pushButton_close_clicked();

private:
    Ui::GroupChatWindow *ui;
    QTcpSocket *groupSocket;
    QString userName;
};

#endif // GROUPCHATWINDOW_H
